package com.example.demo.service.impl;

import com.example.demo.entity.Browse;
import com.example.demo.mapper.BrowseMapper;
import com.example.demo.service.BrowseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrowseServiceImpl implements BrowseService {
    @Autowired
    private BrowseMapper browseMapper;

    @Override
    public void insert(Browse browse){
        browseMapper.insert(browse);
    }

    @Override
    public List<Browse> selectBrowse(String id) {
        return browseMapper.selectBrowse(id);
    }

    @Override
    public void deleteBrowse(String id) {
        browseMapper.deleteBrowse(id);
    }

    @Override
    public List<Browse> selectBrBD(String id, String date) {
        return browseMapper.selectBrBD(id,date);
    }
}
